package com.tanhua.sso.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;


/**
 * 枚举Enum 日期,性别,星期,等固定信息使用枚举enum
 * 将固定信息私有,并且创建get和有参构造
 * 然后利用
 */
public enum SexEnum implements IEnum<Integer> {
    MAN(1,"男"),
    WOMAN(2,"女"),
    UNKNOWN(3,"未知");

    private int value;
    private String desc;

    SexEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }


    @Override
    public Integer getValue() {
        return this.value;
    }
    @Override
    public String toString() {
        return this.desc;
    }
}
